package com.yxinsur.imc.business.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@TableName(autoResultMap = true)
@Data
public class CommDetailsVo {

    private static final long serialVersionUID = 1L;

    //代理人职级数组ids[]
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private String brokerRoleIds;
    //1代推荐人id 直接推荐人
    @ApiModelProperty("直接推荐人id")
    private Long recommenderId;

    @ApiModelProperty("直接推荐人姓名")
    private String recommenderName;
    //2代推荐人id 间接推荐人
    @ApiModelProperty("间接推荐人id")
    private Long indirectRecommenderId;

    @ApiModelProperty("间接推荐人姓名")
    private String indirectRecommenderName;
    //首期佣金-保单年度=1-imc_order_risk_id列表ids[] pay_year<>1 手续费已结，佣金未发，时间条件[基本法结算口径]
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private String firstOrderRiskIds;
    //续期佣金列表-保单年度>1-imc_order_risk_idid[] pay_year<>1 手续费已结，佣金未发，时间条件[实收日期<=所选结算月]
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private String renewalOrderRiskIds;

    //首期保费
    @ApiModelProperty("首期保费")
    private BigDecimal firstPrem;
    //首期标保
    @ApiModelProperty("首期标保")
    private BigDecimal standPrem;
    //首期直佣
    @ApiModelProperty("首期直佣")
    private BigDecimal firstComm;
    //续期规保
    @ApiModelProperty("续期规保")
    private BigDecimal renewalPrem;
    //续期直佣
    @ApiModelProperty("续期直佣")
    private BigDecimal renewalComm;
}
